//
//  TestMKUICustomTabBar.h
//  MKUITestApp
//
//  Created by 苏尚进 on 2023/8/3.
//  Copyright © 2023 moon. All rights reserved.
//

#import <MKUI/MKUI.h>

NS_ASSUME_NONNULL_BEGIN

@interface TestMKUICustomTabBarItem : MKUICustomTabBarItem
@property(nonatomic,strong,nullable) UIImage *selectedImageOfScrollToTop;//滚动到顶部的图片(选中状态）
@property(nonatomic,strong,nullable) UIImage *imageOfScrollToTop;//滚动到顶部的图片(未选中)
@property(nonatomic,assign) BOOL shouldScrollToTop;//viewcontroller内部的scrollView，是否处在可滚动到顶部的状态
@end

//可展示滚动到顶部的特效
@interface TestMKUICustomTabBarItemCellViewScrollToTop : MKUICustomTabBarItemCellView
- (void)playScrollToTop:(BOOL)shouldScrollToTop animated:(BOOL)animated;
@end

@interface TestScrollViewScrollHandle : NSObject<UIScrollViewDelegate>
@property(nonatomic,assign) CGFloat position;
@property(nonatomic,copy,nullable) void(^whenOverPosition)(TestScrollViewScrollHandle *handle,BOOL isDown);
- (void)scrollViewDidScroll:(UIScrollView *)scrollView;
@end

NS_ASSUME_NONNULL_END
